package com.Algorithm.HUAWEI.one20211020;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/20/22:43
 * @Description:
 * @Target:
 */
public class 数字颠倒 {


    public static void main(String[] args) throws IOException {

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String s = bufferedReader.readLine();
        StringBuffer stringBuffer = new StringBuffer(s);


        System.out.println(stringBuffer.reverse().toString());



 /*       Scanner input = new Scanner(System.in);
        int in = input.nextInt();
        if(in==0){
            System.out.println("0");
        }else{
            System.out.println(getRever(in));
        }
*/
    }



    public static String getRever(int i){

        StringBuffer str = new StringBuffer();

        while(i>0){
            str.append(i % 10);
            i=i/10;
        }


        String ss = str.toString();
        return ss;

    }


}
